package com.uyayo.system.config.service;

import java.util.List;

import com.uyayo.framework.common.exception.CodeMultipleException;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.system.config.entity.SysParam;
import com.uyayo.system.config.model.SysParamCondition;

public interface SysParamService {
	
	SysParam getSysParamsById(String id) throws Exception;

	PageBean<SysParam> selectParams(Integer page, Integer rows,String sort,String order,SysParamCondition sysParamCondition);
	
	List<SysParam> selectParams(SysParam params);
	
	/**
	 * 获取单个全局参数记录
	 * @param code
	 * @return
	 */
	SysParam getParamByCode(String code);
	
	int saveParams(SysParam params) throws CodeMultipleException;

	int updateParam(SysParam params) throws CodeMultipleException;

	int deleteParamsById(String id);
	
	/**
	 * 根据编码获取参数
	 * @return
	 */
	String getSysParamValueByCode(String code);


	/**
	 * 上传文件URL
	 * @return String
	 */
	String  getUploadBaseUrl();

	/**
	 * FTP启用状态
	 * @return String
	 */
	boolean getFtpEnabled();

	/**
	 * 默认上传路径
	 * @return String
	 */
	String getDefaultUploadPath();

}
